package cn.hu.basic.service;

import cn.hu.basic.util.PageList;
import cn.hu.basic.query.BaseQuery;

import java.util.List;

public interface IBaseService<T> {
    T findById(Long id);
    List<T> findAll();
    void add(T t);
    void delete(Long id);
    void update(T t);
    PageList<T> listByQuery(BaseQuery query);

    void patchDelete(List<Long> ids);
}
